/*
 * eventhandler.h
 *
 *  Created on: 26 May 2012
 *      Author: hframe
 */

#ifndef INPUT_HANDLER_H_
#define INPUT_HANDLER_H_

#include <android/input.h>


#include "../common.h"


startnamespace(androidplus)
startnamespace(input)

class input_handler {
public:
	input_handler();
	virtual ~input_handler();
	virtual void handle(const AInputEvent *event);
private:
	void  handle_touchscreen_event(const AInputEvent *event );
	void  handle_keyboard_event(const AInputEvent *event );
	void  handle_trackball_event(const AInputEvent *event );
	void  handle_mouse_event(const AInputEvent *event );
	void  handle_dpad_event(const AInputEvent *event );
	void handle_touchpad_event(const AInputEvent *event);

};

endnamespace(input)
endnamespace(androidplus)
#endif /* INPUT_HANDLER_H_ */
